package ren.kane.phoenix.some.innerclass;

/**
 * 局部内部类.
 *
 * @author renrk(1275) on 2018-10-28 11:57 AM
 **/
public class Man {

    public Man() {
    }

    private void getWoman() {
        class Woman {
            int age = 18;
        }
        System.out.println(new Woman().age);
    }

    public static void main(String[] args) {
        Man man = new Man();
        man.getWoman();
    }
}
